using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace Login
{
    /// <summary>
    /// generate by msg tool
    /// 游戏开始消息
    /// </summary>
	public class ResGameStartMsg : ResMessage
	{
		//版本号
		public String version;

        public ResGameStartMsg() { }

        public ResGameStartMsg(String version)
        {
            this.version = version;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushString(version);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			version = b.toString();
			
		}

		public int Id
		{
            get { return 100203; }
		}

        public String Desc
        {
            get { return "游戏开始消息"; }
        }
	}
}